package com.tianhui.consignortwofei.mvp.ui.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.tianhui.consignortwofei.R;
import com.tianhui.consignortwofei.mvp.model.QuotationListBean;


import org.yczbj.ycrefreshviewlib.adapter.RecyclerArrayAdapter;
import org.yczbj.ycrefreshviewlib.holder.BaseViewHolder;

import java.util.List;

/**
 * @author fei
 * @date 2023/12/20
 * @description
 */
public class QuotationSecindItemAdapter extends RecyclerArrayAdapter<QuotationListBean.QuotationRecords.PlasticsQuotationListDTO> {




    private List<QuotationListBean.QuotationRecords.PlasticsQuotationListDTO> list;
    private Context mContext;


    public QuotationSecindItemAdapter(Context context) {//, IOrderStatus iOrderStatus
        super(context);
        this.mContext = context;

    }

    public QuotationSecindItemAdapter(Context context, List<QuotationListBean.QuotationRecords.PlasticsQuotationListDTO> listBeans) {//, IOrderStatus iOrderStatus
        super(context);
        this.mContext = context;
        list=listBeans;
    }




    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        OrderListViewHolder viewHolder = new OrderListViewHolder(parent, R.layout.item_quotation_secind);
        return viewHolder;
//        switch (viewType) {
//            case 0:
//                return new newsBigImgViewHolder(parent, R.layout.item_news_big);
//            case 1:
//                return new newsSmallImgViewHolder(parent, R.layout.item_news_small);
//            case 2:
//                return new newsThreeViewHolder(parent, R.layout.item_news_three_image);
//        }
//        return null;


    }



    public class OrderListViewHolder extends BaseViewHolder<QuotationListBean.QuotationRecords.PlasticsQuotationListDTO> {


        private ProgressBar pb_huati;
        private TextView tv_text;
        private ImageView iv_select;
        private TextView tv_percentage;


        public OrderListViewHolder(ViewGroup parent, int res) {
            super(parent, res);

//            pb_huati = (ProgressBar) getView(R.id.pb_huati);
//            tv_text = (TextView) getView(R.id.tv_text);
//            iv_select = (ImageView) getView(R.id.iv_select);
//            tv_percentage = (TextView) getView(R.id.tv_percentage);


//            addOnClickListener(R.id.iv_like_heart);
//            addOnClickListener(R.id.tv_like_text);
//
//            addOnClickListener(R.id.iv_head);
//            addOnClickListener(R.id.tv_user_name);



        }

        @Override
        public void setData(QuotationListBean.QuotationRecords.PlasticsQuotationListDTO data) {
            super.setData(data);



        }


    }






}
